package org.eiahe.hr.attendance.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 钉钉配置属性
 *
 * @author zhangnn
 */
@Data
@Component
@ConfigurationProperties(prefix = "dingtalk")
public class DingTalkProperties {

    /**
     * 应用AgentId
     */
    private String agentId;

    /**
     * 应用AppKey
     */
    private String appKey;

    /**
     * 应用AppSecret
     */
    private String appSecret;

    /**
     * 是否启用钉钉考勤同步
     */
    private Boolean enabled = true;

    /**
     * 每次同步的数据条数限制
     */
    private Integer pageSize = 100;
}
